package ${package_name}.service.impl;

import ${package_name}.model.${table_name};
import ${package_name}.service.${table_name}Service;
import org.springframework.stereotype.Service;

/**
* 描述：${table_annotation} 服务实现层
* @author ${author}
* @date ${date}
*/
@Service
public class ${table_name}ServiceImpl implements ${table_name}Service {

    @Resource
    private ${table_name}Mapper ${table_name?uncap_first}Mapper;
    
    @Override
    public int deleteByPrimaryKey(Integer id){
    	return ${table_name?uncap_first}Mapper.deleteByPrimaryKey(id);
    }

	@Override
    public int insertSelective(${table_name} ${table_name?uncap_first}){
    	return ${table_name?uncap_first}Mapper.insertSelective(${table_name?uncap_first});
    }

	@Override
    public ${table_name} selectByPrimaryKey(Integer id){
    	return ${table_name?uncap_first}Mapper.selectByPrimaryKey(id);
    }

	@Override
    public int updateByPrimaryKeySelective(${table_name} ${table_name?uncap_first}){
    	return ${table_name?uncap_first}Mapper.updateByPrimaryKeySelective(${table_name?uncap_first});
    }

}